import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import "vant/lib/index.css";
import {
		Col,
		Row,
		ActionBar,
		ActionBarIcon,
		ActionBarButton,
		Divider,
		Popup,
		Overlay,
		Loading,
		Dialog,
		ContactCard,
		Form,
		AddressEdit,
		AddressList,
		Field,
		CellGroup,
		Cell,
		SwipeCell,
		Icon,
		Stepper,
		Card,
		Checkbox,
		CheckboxGroup,
		Button,
		Swipe,
		SwipeItem,
		PullRefresh,
		List,
		Tab,
		Tabs,
		SubmitBar,
		Toast,
		Skeleton,
		Search,
		} from 'vant';

const app = createApp(App);
app.config.globalProperties.$filters={
	prefix(url) {
		if(url){
			return url;
		}else{
			url = `http://backend-api-01.newbee.ltd${url}`;
			return url;
		}	
	}
}



app.use(router);
app.use(Col);
app.use(Row);

app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(Divider);
app.use(Popup);
app.use(Overlay);
app.use(Loading);
app.use(Dialog);
app.use(ContactCard);
app.use(AddressEdit);
app.use(AddressList);
app.use(Cell);
app.use(SwipeCell);
app.use(Icon);
app.use(Stepper);
app.use(Card);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Button);
app.use(Swipe);
app.use(SwipeItem);
app.use(PullRefresh);
app.use(List);
app.use(Tab);
app.use(Tabs);
app.use(SubmitBar);
app.use(Toast);
app.use(Skeleton);
app.use(Search);


app.use(Form);
app.use(Field);
app.use(CellGroup);


app.mount('#app');
